package com.woniuxy.service.controller;

import com.woniuxy.commons.service.FeignAddressService;
import com.woniuxy.commons.util.ResponseResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@Slf4j
@RequestMapping("/address")
@RestController
public class AddressController {
    @Resource
    private FeignAddressService feignAddressService;
    @RequestMapping("/find/{did}")

    public ResponseResult disabledaddress(@PathVariable("did")int did){
        log.info("调用feign方法");
        return feignAddressService.findAddressByDisabledId(did);
    }
}
